#include "kernel/astralapi.h"



void ps()
{

}

#include "shell.h"
#include "strapi.h"

int list(int argc, char *argv[])
{
    if (argc < 2)
    {
        kerror("invalid input parameters\n");
    }

    if (0 == strncmp(argv[1], "thread", 7))
    {
        list_thread();
    }

    if (0 == strncmp(argv[1], "driver", 7))
    {
        list_driver();
    }

    if (0 == strncmp(argv[1], "device", 7))
    {
        list_device();
    }

    if (0 == strncmp(argv[1], "irq", 7))
    {
        list_irqs();
    }

    if (0 == strncmp(argv[1], "version", 7))
    {
        kprint("%s\n", ASSIGNOFF);
    }


    return 0;
}

DEFINE_STATIC_CMD(list, "list information of kernel objects")